# -*-coding:utf-8-*-
import subprocess
import random
import Setting


def downNow(img_save):

    img_href = 'https://picsum.photos/1920/1080'

    # 下载图片
    #comm = 'curl -L %s %s --output %s' % (Setting.proxy, img_href, img_save)
    comm = '/usr/bin/curl -SsL %s --output %s' % (img_href, img_save)
    subprocess.run(comm,shell=True)
    return img_save

